<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Demo05</title>
    <style>
        [type] {
            color: lightseagreen;
            /*border:1px solid red;*/
        }

        [type=password] {
            color: darkseagreen;
        }
    </style>
</head>
<body>

用户名：<input type="text"><br>
密码：<input type="password">
</body>
</html>